# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import tinymce.models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AreaInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('area_name', models.CharField(max_length=50, verbose_name='地区名')),
                ('area_code', models.CharField(max_length=50, verbose_name='区号')),
            ],
        ),
        migrations.CreateModel(
            name='City',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('area_code', models.CharField(max_length=30)),
                ('area_name', models.CharField(max_length=50)),
                ('area_parent', models.CharField(max_length=30, null=True, blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='MyFile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('file_name', models.ImageField(upload_to='deploy/')),
            ],
        ),
        migrations.CreateModel(
            name='News',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('news_title', models.CharField(max_length=50)),
                ('news_content', tinymce.models.HTMLField()),
            ],
        ),
        migrations.CreateModel(
            name='Person',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('person_name', models.CharField(max_length=30, verbose_name='名字')),
                ('person_age', models.IntegerField(verbose_name='年龄')),
                ('person_sex', models.CharField(max_length=5, verbose_name='性别')),
                ('person_area', models.ForeignKey(to='deploy.AreaInfo', verbose_name='地区')),
            ],
        ),
    ]
